package day06;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import sun.java2d.pipe.SpanIterator;

import java.util.Arrays;

public class HomeWork2 {
    public static void main(String[] args) {
        /*
        int a ;
        int b,c,d;
        int e =250;
        int f;
        f = 250;
        int g = 5;
        int h = g+10;
        System.out.println(h);
        System.out.println("h");
        g=g+10;
        System.out.println(g);
        int age;
        int score,myScore,myJavaScore;
        int l = 25;
        System.out.println(5/2);
        System.out.println(2/5);
        System.out.println(5/2.0);
        c=2147483647;
        c=c+1;
        System.out.println(c);
        long s=10000000000L;
        long a1=1000000000*2*10L;
        System.out.println(a1);
        long b1=1000000000*3*10L;
        System.out.println(b1);
        long c1=1000000000L*3*10;
        System.out.println(c1);
        double d1 = 3.14159;
        float d2=3.14159F;
        double e1=3.0,f1=2.9;
        System.out.println(e1-f1);
        boolean a2=true;
        boolean b2=false;
        char c2= '女';
        char e2= 'f';
        char f2= '6';
        int z = 5;
        long x = z;
        int m = (int)x;
        byte j1=5;
        byte j2 = 6;
        byte b3 =(byte) (j1+j2);
        System.out.println(2+2);
        System.out.println(2+'2');
        System.out.println('2'+'2');
        System.out.println(5%2);
        System.out.println(2%5);
        System.out.println(8%2);
        *//*
        int a=5,b=5;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);
        int c=5,d=5;
        int e=c++;
        int f=++d;
        System.out.println(e);
        System.out.println(f);
        int a1 = 5,b1 = 6;
        int c1 = a--;
        int d1 = --a;
        System.out.println(a1);
        System.out.println(b1);
        System.out.println(c1);
        System.out.println(d1);
        *//*
        int a = 5,b = 10, c = 5;
        boolean b1=a>b;
        System.out.println(b1);
        System.out.println(c<b);
        System.out.println(a>=c);
        System.out.println(a<=b);
        System.out.println(a==c);
        System.out.println(a!=c);
        System.out.println(a%2==0);
        System.out.println(a+c>b);
        System.out.println(a++>5);
        System.out.println(a++>5);
        *//*
        for (int i=0;i<6;i++){
            for (int p=6;p>i;p--){
                System.out.print("*");
            }
            for (int o=0;o<=i;o++){
                System.out.print(" ");
            }
            System.out.println();
        }*/
        double h=100.0;
        double num=0.0;
        for (int i=1;i<=9;i++){
            num=num+h;
            h=h/2;
            num=num+h;
        }
        System.out.println(num-h);
        System.out.println(h);
        int sun=0;
        for (int i=2;i<=100;i+=2){
            sun+=i;
        }
        System.out.println(sun);
        int nun=1;
        for (int i=1;i<=8;i++){
            nun*=i;
        }
        System.out.println(nun);
        for (int i=1;i<=6;i++){
            for (int k=1;k<=2*i-1;k++){
                System.out.print("*");
            }
            System.out.println();
        }






    }
}
